projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9160a68
)
color-chooser-widget: set a name on the "Add color" button
author
Cosimo Cecchi
<cosimoc@gnome.org>
Mon, 20 Feb 2012 12:53:10 +0000
(13:53 +0100)
committer
Cosimo Cecchi
<cosimoc@gnome.org>
Mon, 20 Feb 2012 12:53:10 +0000
(13:53 +0100)
So we can easily catch it from the theme.
gtk/gtkcolorchooserwidget.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcolorchooserwidget.c
b/gtk/gtkcolorchooserwidget.c
index fad55fa57706dd1916782b941bc73de2acf04a4e..3fb890f4f0da9e242c6abea578d8df3d6467c9f2 100644
(file)
--- a/
gtk/gtkcolorchooserwidget.c
+++ b/
gtk/gtkcolorchooserwidget.c
@@
-510,6
+510,7
@@
gtk_color_chooser_widget_init (GtkColorChooserWidget *cc)
gtk_box_pack_end (GTK_BOX (cc->priv->palette), label, FALSE, TRUE, 0);
cc->priv->button = button = gtk_color_swatch_new ();
+ gtk_widget_set_name (button, "add-color-button");
atk_obj = gtk_widget_get_accessible (button);
atk_object_set_role (atk_obj, ATK_ROLE_PUSH_BUTTON);
atk_object_set_description (atk_obj, _("Create custom color"));